package cn.tedu.charging.order.dao.repository;

import cn.tedu.charging.order.pojo.po.ChargingBillFailPO;
import cn.tedu.charging.order.pojo.po.ChargingBillSuccessPO;

import java.util.List;

public interface OrderRepository {


    Integer saveSuccessOrder(ChargingBillSuccessPO chargingBillSuccessPO);

    List<ChargingBillSuccessPO> orderList(Integer userId);

    Integer saveFailOrder(ChargingBillFailPO chargingBillFailPO);

    Integer updateOrderStatusFromProcess2ExceptionEnd(String orderNo);

    ChargingBillSuccessPO getSuccess(String orderNo);

    ChargingBillFailPO getFail(String orderNo);

    void updateSuccessOrder(String orderNo, int gunId);

    Integer updateOrderStatus2NormalStop(String orderNo);
}
